package net.im;

import java.io.Serializable;

public class IMMessagePacket implements Serializable {
	private String userIP;
	private String userName;
	private String dataType;
	private String data;

	public IMMessagePacket(String userIP, String userName, String dataType, String data) {
		this.userIP = userIP;
		this.userName = userName;
		this.dataType = dataType;
		this.data = data;
	}
	
	/*
	 * IP设置与获取
	 */
	public void setUserIP(String userIP) {
		this.userIP = userIP;
	}
	
	public String getUserIP() {
		return userIP;
	}
	
	/*
	 * 用户名设置与获取
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}
	
	/*
	 * 消息类型设置与获取
	 */
	public void setDataType(String dataType) {
		this.dataType = dataType;
	}

	public String getDataType() {
		return dataType;
	}

	/*
	 * 消息内容设置与获取
	 */
	public void setData(String data) {
		this.data = data;
	}

	public String getData() {
		return data;
	}
}
